package com.iaiai.cobra.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.iaiai.cobra.repository.bean.Post;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with PostService.
 * Package: com.iaiai.cobra.system.service
 * Author: iaiai
 * Create Time: 2024/6/24 20:49
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
public interface PostService extends IService<Post> {

    //分页查询
    Page<Post> queryPage(Page page, String search);

    //查询排序最大的
    Post queryMax();

    //查询所有启用的岗位
    List<Post> queryEnableAll();

    //查询用户的岗位
    List<Post> queryByUser(Long userId);

}
